<#--
  Frontend API 一对多专用方法
-->,

  /**
   * 创建${table.comment!table.entityName}(含关联数据)
   */
  create${table.entityName}WithRelations: async (data: any): Promise<ApiResponse<any>> => {
    return request.post(`${'$'}{base}/with-relations`, data)
  },

  /**
   * 更新${table.comment!table.entityName}(含关联数据)
   */
  update${table.entityName}WithRelations: async (id: string | number, data: any): Promise<ApiResponse<any>> => {
    return request.put(`${'$'}{base}/${'$'}{id}/with-relations`, data)
  }


